/// branchId : 6627
/// commonName : "和胃整肠丸"
/// createdBy : "5"
/// createdDate : "2024-05-29 21:14:43"
/// doseNum : 6
/// doseType : "1"
/// doseTypeName : "胶囊"
/// doseUnit : "1"
/// doseUnitName : "毫升"
/// id : 2
/// maxUnit : "1"
/// maxUnitName : "盒"
/// minUnit : "2"
/// minUnitName : "粒"
/// placementFlag : 0
/// prescriptionFlag : 0
/// productName : "和胃整肠丸（泰国）"
/// saasId : 1000
/// specifications : "6g*50粒"
/// status : 1
/// unitNum : 50
/// updatedBy : "5"
/// updatedDate : "2024-05-29 21:23:56"

class DrugListData {
  DrugListData({
      this.branchId, 
      this.commonName, 
      this.createdBy, 
      this.createdDate, 
      this.doseNum, 
      this.doseType, 
      this.doseTypeName, 
      this.doseUnit, 
      this.doseUnitName, 
      this.id, 
      this.maxUnit, 
      this.maxUnitName, 
      this.minUnit, 
      this.minUnitName, 
      this.placementFlag, 
      this.prescriptionFlag, 
      this.productName, 
      this.saasId, 
      this.specifications, 
      this.status, 
      this.unitNum, 
      this.updatedBy, 
      this.updatedDate,});

  DrugListData.fromJson(dynamic json) {
    branchId = json['branchId'];
    commonName = json['commonName'];
    createdBy = json['createdBy'];
    createdDate = json['createdDate'];
    doseNum = json['doseNum'];
    doseType = json['doseType'];
    doseTypeName = json['doseTypeName'];
    doseUnit = json['doseUnit'];
    doseUnitName = json['doseUnitName'];
    id = json['id'];
    maxUnit = json['maxUnit'];
    maxUnitName = json['maxUnitName'];
    minUnit = json['minUnit'];
    minUnitName = json['minUnitName'];
    placementFlag = json['placementFlag'];
    prescriptionFlag = json['prescriptionFlag'];
    productName = json['productName'];
    saasId = json['saasId'];
    specifications = json['specifications'];
    status = json['status'];
    unitNum = json['unitNum'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
  }
  num? branchId;
  String? commonName;
  String? createdBy;
  String? createdDate;
  num? doseNum;
  String? doseType;
  String? doseTypeName;
  String? doseUnit;
  String? doseUnitName;
  num? id;
  String? maxUnit;
  String? maxUnitName;
  String? minUnit;
  String? minUnitName;
  num? placementFlag;
  num? prescriptionFlag;
  String? productName;
  num? saasId;
  String? specifications;
  num? status;
  num? unitNum;
  String? updatedBy;
  String? updatedDate;
DrugListData copyWith({  num? branchId,
  String? commonName,
  String? createdBy,
  String? createdDate,
  num? doseNum,
  String? doseType,
  String? doseTypeName,
  String? doseUnit,
  String? doseUnitName,
  num? id,
  String? maxUnit,
  String? maxUnitName,
  String? minUnit,
  String? minUnitName,
  num? placementFlag,
  num? prescriptionFlag,
  String? productName,
  num? saasId,
  String? specifications,
  num? status,
  num? unitNum,
  String? updatedBy,
  String? updatedDate,
}) => DrugListData(  branchId: branchId ?? this.branchId,
  commonName: commonName ?? this.commonName,
  createdBy: createdBy ?? this.createdBy,
  createdDate: createdDate ?? this.createdDate,
  doseNum: doseNum ?? this.doseNum,
  doseType: doseType ?? this.doseType,
  doseTypeName: doseTypeName ?? this.doseTypeName,
  doseUnit: doseUnit ?? this.doseUnit,
  doseUnitName: doseUnitName ?? this.doseUnitName,
  id: id ?? this.id,
  maxUnit: maxUnit ?? this.maxUnit,
  maxUnitName: maxUnitName ?? this.maxUnitName,
  minUnit: minUnit ?? this.minUnit,
  minUnitName: minUnitName ?? this.minUnitName,
  placementFlag: placementFlag ?? this.placementFlag,
  prescriptionFlag: prescriptionFlag ?? this.prescriptionFlag,
  productName: productName ?? this.productName,
  saasId: saasId ?? this.saasId,
  specifications: specifications ?? this.specifications,
  status: status ?? this.status,
  unitNum: unitNum ?? this.unitNum,
  updatedBy: updatedBy ?? this.updatedBy,
  updatedDate: updatedDate ?? this.updatedDate,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['branchId'] = branchId;
    map['commonName'] = commonName;
    map['createdBy'] = createdBy;
    map['createdDate'] = createdDate;
    map['doseNum'] = doseNum;
    map['doseType'] = doseType;
    map['doseTypeName'] = doseTypeName;
    map['doseUnit'] = doseUnit;
    map['doseUnitName'] = doseUnitName;
    map['id'] = id;
    map['maxUnit'] = maxUnit;
    map['maxUnitName'] = maxUnitName;
    map['minUnit'] = minUnit;
    map['minUnitName'] = minUnitName;
    map['placementFlag'] = placementFlag;
    map['prescriptionFlag'] = prescriptionFlag;
    map['productName'] = productName;
    map['saasId'] = saasId;
    map['specifications'] = specifications;
    map['status'] = status;
    map['unitNum'] = unitNum;
    map['updatedBy'] = updatedBy;
    map['updatedDate'] = updatedDate;
    return map;
  }

}